const { name } = require("./package");

module.exports = {
  publicPath: "/app/vue-child",
  devServer: {
    port: 9000,
    headers: {
      "Access-Control-Allow-Origin": "*"
    }
  },
  configureWebpack: {
    output: {
      library: `vueChild`,
      libraryTarget: "umd", // 把微应用打包成 umd 库格式
      jsonpFunction: `webpackJsonp_${name}`
    }
  }
};
